package com.lh.runmanage.service.Impl;

import com.lh.runmanage.dao.UserTimeMapper;
import com.lh.runmanage.model.InPutParam.UserTimeInParam;
import com.lh.runmanage.model.InPutParam.UserTimeListInParam;
import com.lh.runmanage.model.UserTimeModel;
import com.lh.runmanage.service.UserTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：梁昊，后端工程师：梁昊
 * @create 2021-07-22 17:30
 * @function
 * @editLog
 */
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
@Service
public class UserTimeServiceImpl implements UserTimeService {
    @Autowired
    UserTimeMapper userTimeMapper;
    /**
     * 展示端方法：U1， 用户时长
     *
     * @param userTimeInParam com.lh.runmanage.model.InPutParam.UserTimeInParam
     * @return 分页数据
     */
    @Override
    public List<UserTimeModel> selectUserTimeByPageAndCreate(UserTimeInParam userTimeInParam) {
        return userTimeMapper.selectUserTimeByPageAndCreate(userTimeInParam);
    }

    @Override
    public List<UserTimeModel> selectUserTimeByPageAndCreateProjectList(UserTimeListInParam userTimeListInParam) {
        return userTimeMapper.selectUserTimeByPageAndCreateProjectList(userTimeListInParam);
    }
}
